#include"process.h"

double speed=100.0;
double total=1024.0;

void DownLoad()
{
    double current=0;
    while(current <= total)
    {
	FlushProcess(total,current);
	//下载代码
	usleep(3000);
	current+=speed;
	if(current>=total) 
        {
	    current=total;
	    FlushProcess(total,current);
	    break;
	}
    }
    printf("\nFinish!\n");
}

int main()
{
    DownLoad();
    return 0;
}
